import { axios } from '@/utils/request'

/**
 * 查询房间预定
 *
 * @author anti
 * @date 2021-04-23 09:43:48
 */
export function roomReservationPage (parameter) {
  return axios({
    url: '/roomReservation/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 房间预定列表
 *
 * @author anti
 * @date 2021-04-23 09:43:48
 */
export function roomReservationList (parameter) {
  return axios({
    url: '/roomReservation/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加房间预定
 *
 * @author anti
 * @date 2021-04-23 09:43:48
 */
export function roomReservationAdd (parameter) {
  return axios({
    url: '/roomReservation/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑房间预定
 *
 * @author anti
 * @date 2021-04-23 09:43:48
 */
export function roomReservationEdit (parameter) {
  return axios({
    url: '/roomReservation/edit',
    method: 'post',
    data: parameter
  })
}

export function roomReservationQxyd (parameter) {
  return axios({
    url: '/roomReservation/qxyd',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除房间预定
 *
 * @author anti
 * @date 2021-04-23 09:43:48
 */
export function roomReservationDelete (parameter) {
  return axios({
    url: '/roomReservation/delete',
    method: 'post',
    data: parameter
  })
}

export function deleteAllSelect (parameter) {
  return axios({
    url: '/roomReservation/deleteAllSelect',
    method: 'post',
    data: parameter
  })
}
